package com.whut.work.user.service;

import com.whut.work.base.model.Page;
import com.whut.work.user.model.User;

import java.util.Map;

/**
 * Created by zouy on 17-3-15.
 */
public interface IUserService {

    //获取用户分页列表
    public Page<User> getUserPageList(int currentPage, int pageSize, String blurUserName) throws Exception;

    //获取用户所选课程
    public Map<String, Object> getCoursePageListByUserId(int currentPage, int pageSize, Integer userId) throws Exception;

    //用户注册
    public Map<String, Object> addOneUser(String password,String type,String username,String sex,
                                          String origin,String graduate,String major,String tel,String picture,
                                          String number) throws Exception;
    //用户更新
    public Map<String, Object> updateOneUser(String account,String password,String type,String username,String sex,
                                          String origin,String graduate,String major,String tel,String picture) throws Exception;

    //获取用户信息
    public Map<String, Object> getOneUser(String account,String password) throws Exception;

}
